# coding: utf-8

from django.urls import path, re_path

from shop import views
app_name = 'shop'
urlpatterns = [
    path('', views.product_list, name='product_list'),
    re_path(r'^shop/(?P<category_slug>[-\w]+)/$',views.product_list,name='product_list_by_category'),
    re_path(r'^shop/(?P<id>\d+)/(?P<slug>[-\w]+)/$',views.product_detail,name='product_detail'),



]
